<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML>
<html>
<head>
<title>发帖</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
	<div class="about-bottom">
		<div class="wrap">
			<div class="section group">
				<div class="lsidebar span_1_of_3">
					<h3>所有帖子</h3>
					<ul>
						<%
							int count = 0;
						%>
						<s:iterator value="cardList" var="cl">
							<%
								count++;
							%>
							<li class="grid_1">
								<div class="count"><%=count%></div>
								<div class="extra_wrapper">
									<div class="text2">

										<div class="services-grid">
											<h4>${cl.title }</h4>
											<p>${cl.content }</p>
											<p>作者：${cl.fromName},时间：${cl.createTime}</p>
										</div>
										<div class="more1">
											<a href="addDiscussPage?card.cardId=${cl.cardId }" class="btn">评论</a>
										</div>									
									</div>
								</div>
							</li>
						</s:iterator>
					</ul>
					<a
						href="getCardListByPage?pageFlag=0&startIndex=${startIndex }&pageIndex=${pageIndex}">上一页</a>&nbsp;|&nbsp;<a
						href="getCardListByPage?pageFlag=1&startIndex=${startIndex }&pageIndex=${pageIndex}">下一页</a>&nbsp;|&nbsp;第${pageIndex}页&nbsp;|&nbsp;共${totalPage }页
				</div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
</body>
</html>



